<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %> 
<script type="text/javascript">
function mg_showsdkproviders(id)
{
    var url = "mg/sdkproviders/show.do";
    var content = "model.id=" + id ;
    var objectid = "mg_sdkproviders";
    sendXMLHttpRequest(url, content, objectid); 
}

function mg_listsdkproviders()
{
	 var url = "mg/sdkproviders/list.do";
     var objectid = "content";
     var content = "";
     sendXMLHttpRequest(url, content, objectid); 
}

function mg_showsdkconfig(id)
{
    var url = "mg/sdkconfig/show.do";
    var content = "model.sdkprovidersid=" + id ;
    var objectid = "mg_sdkproviders";
    sendXMLHttpRequest(url, content, objectid); 
}

function mg_listsdkparamater(sdkid)
{
	 var url = "mg/sdkparamater/list.do";
     var objectid = "content";
     var content = "model.sdkid="+sdkid;
     sendXMLHttpRequest(url, content, objectid); 
}
</script>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5"></td>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="25" class="t1">
          <img src="images/small0.gif" width="14" height="12"> 您现在的位置&gt;&gt;支付提供商管理</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td >
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_top_left.jpg" width="20" height="15" /></td>
            <td><img src="images/table_top_bg.jpg" width="770" height="15"/></td>
            <td align="right">
              <img src="images/table_top_right.jpg" width="20" height="15" /></td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="25" class="table_blue">
          <strong><img src="images/dot.jpg" width="13" height="9">SDK列表</strong>
          <span style="float:right;color:#000000;">        
          <button id="btn1" dojoType="dijit.form.Button" 
            onclick="mg_showsdkproviders(-1);">新增</button>
          &nbsp;&nbsp;
          </span>
          </td>
      </tr>   
      <tr>
      <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" class="table_g1" width="5%">序号</td>
        <td align="center" class="table_g2" width="5%">sdkid</td>
        <td align="center" class="table_g2" width="10%">sdk名称</td>
        <td align="center" class="table_g2" width="15%">公司名称</td>
        <td align="center" class="table_g2" width="15%">接入时间</td>
        <td align="center" class="table_g2" width="40%">描述</td>
        <td align="center" class="table_g2" width="15%"></td>
      </tr>
      
      <s:if test="list.size > 0" >
        <s:iterator value="list" status="stat">
        <tr onmouseover="this.style.background='#c0c0c0';" 
            onmouseout="this.style.background='#ffffff';"> 
          <td class="table_w1" align="center"><s:property value="#stat.index+1" /></td>
          <td class="table_w2" align="center"><s:property value="id" /></td>
          <td class="table_w2" align="center"><s:property value="sdkname" /></td>
           <td class="table_w2" align="center"><s:property value="companyname" /></td>
            <td class="table_w2" align="center"><s:property value="accessdate" /></td>
          <td class="table_w2" align="center"><s:property value="remark" /></td>
          <td class="table_w2" align="center">
            <a href="javascript:void(0);" 
              onclick="mg_showsdkproviders(<s:property value="id" />);">设置</a>
              &nbsp;
              <a href="javascript:void(0);" 
              onclick="mg_showsdkconfig(<s:property value="id" />);">资源配置</a>
              &nbsp;
              <a href="javascript:void(0);" 
              onclick="mg_listsdkparamater(<s:property value="id" />);">参数配置</a>
        </tr>    
        </s:iterator>
      </s:if>
      <s:else>
      <tr>
        <td class="table_w1" align="center" colspan="7">无</td>
      </tr>
      </s:else>
      </table>
      </td>
      </tr>
      <tr> 
        <td background="images/table_bom_bg.jpg">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
              <img src="images/table_bom_left.jpg" width="20" height="15"></td>
            <td></td>
            <td align="right">
              <img src="images/table_bom_right.jpg" width="20" height="15"></td>
          </tr>
          </table>
        </td>
      </tr>
    </table>  
  </td>
  <td width="5"></td>
  </tr>
  </table>
  <div id="mg_sdkproviders"></div>  